from rest_framework.pagination import PageNumberPagination


# 自定义全局分页
class StandardResultsSetPagination(PageNumberPagination):
    # 每页最少条数
    page_size = 2
    # 指定每页条数， 考虑移动端
    page_size_query_param = 'page_size'
    # 每页最多多少条
    max_page_size = 20